<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>俄罗斯方块</title>
    <jsp:useBean id="user" class="gamer.Bean.User" scope="session"/>
    <link rel="stylesheet" href="../../css/all.css">
</head>
<body class="container">
<div>
    <div class="header">
        <img class="logo-img" src="../../img/logo.png" alt="logo">
        <div class="menu-div">
            <ul>
                <li><a href="../../index.jsp">首页</a></li>
                <li style="background-color: #BBB"><a href="gameMenu.jsp">游戏菜单</a></li>
                <%
                    if (user.getUser() == null)
                        out.print("<li><a href=\"../user/login.jsp\">登录</a></li>");
                    else
                        out.print("<li><a href=\"../user/userInfo.jsp\">用户中心</a></li>");
                %>
            </ul>
        </div>
    </div>
    <div class="main-div">
        <h3>俄罗斯方块当前得分：<span id="score">0</span></h3>
        <canvas id="tetrisCanvas" width="200" height="400"></canvas>
        <button id="startButton">开始</button>
    </div>
</div>
<script src="../../js/tetris.js"></script>
</body>
</html>
